@import "common";

html {
    margin: 0;
    padding: 0;

    background: #121f2c;
    background-image: url("../img/bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

#row-progress {
    color: #fff;
}

.canvasGL {
    display: block;
    width: 100vw;
    // max-width: 240vh;
    height: 100vh;
    border: none;
    padding: 0;
    margin: 0 auto;
}

.progress {
    text-align: center;
    position: absolute;
    top: 50vh;
    width: 100%;
    font-size: 2.5em;
    color: #fff;
    text-shadow: #030303 0px 0px 5px;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
}

.hidden {
    display: none !important;
}

.transparent {
    opacity: 0 !important;
}

.promo {
    opacity: 1;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: right;
    transition: opacity 1000ms cubic-bezier(0.645, 0.045, 0.355, 1);

    h3 {
        font-size: 1.1em;
        margin: 11px 20px;
    }

    img {
        width: 220px;
    }

    .text {
        color: #fff;
        text-shadow: #030303 0px 0px 5px;
    }

    a, a:link, a:visited {
        color: #fff;
    }
}

.controls {
    background-color: #000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    padding-top: 60px;
    opacity: 1.0;

    transition: opacity 800ms cubic-bezier(0.645, 0.045, 0.355, 1);

    @media(min-width: $screen-sm-min) {
        padding-top: 20px;
        padding-left: 50px;
    }

    .fs & {
        padding: 0;
        padding-top: 60px;

        @media(min-width: $screen-sm-min) {
            padding-top: 0;
            padding-left: 30px;
        }
    }

    label {
        color: #fff;
        text-shadow: rgb(3, 3, 3) 0px 0px 8px;
    }
}

.control-icon {
    opacity: 0.85;
    position: absolute;

    transition: opacity 800ms cubic-bezier(0.645, 0.045, 0.355, 1);

    .material-icons {
        color: #fff;
        text-shadow: rgb(3, 3, 3) 0px 0px 8px;
    }

    &.control-fs {
        left: 20px;
        top: 20px;

        i {
            &.icon-enter-fs {
                display: inline-block;

                @media (display-mode: fullscreen) {
                    display: none;
                }
            }

            &.icon-exit-fs {
                display: none;

                @media (display-mode: fullscreen) {
                    display: inline-block;
                }
            }

            #shape {
                fill: white;
            }
        }
    }

    &.control-settings {
        left: 40px;
        top: 40px;

        .icon-show-settings {
            display: inline-block;
        }

        .icon-hide-settings {
            display: none;
        }

        .fs & {
            left: 20px;
            top: 20px;
        }

        &.open {
            .icon-show-settings {
                display: none;
            }

            .icon-hide-settings {
                display: inline-block;
            }
        }
    }
}

.material-icons {
    &.md-18 {
        font-size: 18px;
    }
    &.md-24 {
        font-size: 24px;
    }
    &.md-36 {
        font-size: 36px;
    }
    &.md-48 {
        font-size: 48px;
    }
}


///////////////////////
.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.mobile-controls {
    display: flex;
    gap: 10px;
    flex-direction: row;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;

    a {
        flex-grow: 1;
        box-sizing: border-box;
        padding: 16px;
        background-color: rgba($color: #222, $alpha: 0.3);
        border: 1px solid #ddd;
        text-align: center;
        color: #fff;
        text-decoration: none;
    }
}